import React from 'react';

import {BrowserRouter} from 'react-router-dom';

import RouterView from './router-view';

import routerConfig from './router-config';

function Router(){
    // 路由的根容器
    return <BrowserRouter>
        <RouterView routes={routerConfig}></RouterView>
    </BrowserRouter>
}

export default Router